import java.util.PriorityQueue;

/**
 * @program: 2022.1.22堆
 * @description:
 * @author: 李鑫月
 * @create: 2022-01-22 09:49
 **/
public class Testdemo {
    public static void main(String[] args) {
        int[] arr={3,1,4,5,9,2,6};
        TestHeap testHeap=new TestHeap();
        testHeap.creatHeap(arr);
//        System.out.println("******************************");
//        PriorityQueue<Integer> priorityQueue=new PriorityQueue<>();
//        priorityQueue.offer(12);
//        priorityQueue.offer(3);
//        priorityQueue.offer(15);
//        System.out.println(priorityQueue.peek());
//        System.out.println(priorityQueue.poll());
//        System.out.println(priorityQueue.poll());
//        System.out.println("******************************");
//        testHeap.offer(44);
//        System.out.println("***********");
        testHeap.heapSort();
        System.out.println();
    }
}
